<?php

namespace app\api\validate;

use taoser\Validate;

class DemoValidate extends Validate
{
    protected $rule = [
        'name' => 'require|max:10',
        'age'  => 'require|between:1,199',
    ];

    protected $field = [
        'name' => '名字',
        'age'  => '年龄',
    ];

    protected $scene = [
        'hello' => ['name', 'age'],
    ];
}